package com.googlecode.lohr.parser.combinators.node;

import com.googlecode.lohr.parser.combinators.matcher.Matcher;

public final class ChoiceNode extends FilterNode
{
	private final int choiceIndex;
	
	public ChoiceNode(Matcher matcher, AbstractNode choice, int choiceIndex)
	{
		super(matcher, choice);
		this.choiceIndex = choiceIndex;
	}
	
	public int getChoiceIndex()
	{
		return choiceIndex;
	}
	
	public AbstractNode getChoice() {
		return getWrappedNode();
	}
}
